Class symantec.itools.db.beans.brl.derivation.PrimitiveDataTypes
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.brl.derivation.PrimitiveDataTypes

Object
   |
   +----symantec.itools.db.beans.brl.derivation.PrimitiveDataTypes

public class PrimitiveDataTypes
extends Object
Class which describes different primitive types

Version:
1.0 07/23/98
Author:
Puru Balakrishnan

Variable Index

 o BOOLEAN
 o BYTE
 o CHAR
variables which describe different primitive types
 o DOUBLE
 o FLOAT
 o INTEGER
 o LONG
 o SHORT
 o STRING

Method Index

 o getPrefTypeForNumberCalculations(Object)
Method to return preferred promoted datatype for number calculations
 o getPrimitiveType(Object)
Static method to return primitive datatype for a particular Object
 o promoteToNumber(Object, int)
Method to return a promoted Object value of the specified datatype Use this method after getting the preferred type.

Variables

 o BOOLEAN
public static final int BOOLEAN
 o BYTE
public static final int BYTE
 o CHAR
public static final int CHAR
variables which describe different primitive types

 o DOUBLE
public static final int DOUBLE
 o FLOAT
public static final int FLOAT
 o INTEGER
public static final int INTEGER
 o LONG
public static final int LONG
 o SHORT
public static final int SHORT
 o STRING
public static final int STRING

Methods

 o getPrefTypeForNumberCalculations
public static int getPrefTypeForNumberCalculations(Object value)
Method to return preferred promoted datatype for number calculations

 o getPrimitiveType
public static int getPrimitiveType(Object obj)
Static method to return primitive datatype for a particular Object

 o promoteToNumber
public static java.lang.Object promoteToNumber(Object orig,
                                               int dataType)
Method to return a promoted Object value of the specified datatype Use this method after getting the preferred type.


All Packages  Class Hierarchy  This Package  Previous  Next  Index